
/* ==================
          步骤条
 ==================== */

.tien-steps {
  display: flex;
}

scroll-view.tien-steps {
  display: block;
  white-space: nowrap;
}

scroll-view.tien-steps .tien-item {
  display: inline-block;
}

.tien-steps .tien-item {
  flex: 1;
  text-align: center;
  position: relative;
  min-width: 50px;
}

.tien-steps .tien-item:not([class*="text-"]) {
  color: #aaa;
}

.tien-steps .tien-item [class*="icon"], .tien-steps .tien-item .num {
  display: block;
  font-size: 20px;
  line-height: 40px;
}

.tien-steps .tien-item::before, .tien-steps .tien-item::after,
.tien-steps.steps-arrow .tien-item::before, .tien-steps.steps-arrow .tien-item::after {
  content: "";
  display: block;
  position: absolute;
  height: 0px;
  width: calc(100% - 40px);
  border-bottom: 1px solid #ccc;
  left: calc(0px - (100% - 40px) / 2);
  top: 20px;
  z-index: 0;
}

.tien-steps.steps-arrow .tien-item::before, .tien-steps.steps-arrow .tien-item::after {
  content: "\e6a3";
  font-family: 'iconfont';
  height: 15px;
  border-bottom-width: 0px;
  line-height: 15px;
  top: 0;
  bottom: 0;
  margin: auto;
  color: #ccc;
}

.tien-steps.steps-bottom .tien-item::before, .tien-steps.steps-bottom .tien-item::after {
  bottom: 20px;
  top: initial;
}

.tien-steps .tien-item::after {
  border-bottom: 1px solid currentColor;
  width: 0px;
  transition: all 0.3s ease-in-out 0s;
}

.tien-steps .tien-item[class*="text-"]::after {
  width: calc(100% - 40px);
  color: currentColor;
}

.tien-steps .tien-item:first-child::before, .tien-steps .tien-item:first-child::after {
  display: none;
}

.tien-steps .tien-item .num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  line-height: 20px;
  margin: 10px auto;
  font-size: 12px;
  border: 1px solid currentColor;
  position: relative;
  overflow: hidden;
}

.tien-steps .tien-item[class*="text-"] .num {
  background-color: currentColor;
}

.tien-steps .tien-item .num::before, .tien-steps .tien-item .num::after {
  content: attr(data-index);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  transition: all 0.3s ease-in-out 0s;
  transform: translateY(0px);
}

.tien-steps .tien-item[class*="text-"] .num::before {
  transform: translateY(-20px);
  color: #fff;
}

.tien-steps .tien-item .num::after {
  transform: translateY(20px);
  color: #fff;
  transition: all 0.3s ease-in-out 0s;
}

.tien-steps .tien-item[class*="text-"] .num::after {
  content: "\e645";
  font-family: 'iconfont';
  color: #fff;
  transform: translateY(0px);
}

.tien-steps .tien-item[class*="text-"] .num.err::after {
  content: "\e646";
}
